const express = require('express')
const router = express.Router()

//导入用户路由处理模块
const scoreHandler = require('../router_handler/score')

//验证数据的中间件
const expressJoi = require('@escook/express-joi')

router.get('/getteachid', scoreHandler.getTeachId)
router.get('/getscorecourse', scoreHandler.getscorecourse)
router.get('/getallscorecourse', scoreHandler.getAllscorecourse)
router.post('/submitscore', scoreHandler.submitScore)
router.get('/getallscore', scoreHandler.getAllscore)
router.get('/getscore', scoreHandler.getScore)
router.get('/getnum', scoreHandler.getNum)

module.exports = router